<script>


function l(){
var w=new Date()
var o=new Date('2021-11-11 9:40:00')

var f=w.getTime()-o.getTime()
if(f/1000<30){
document.write(" 刚刚")
}else if(f/1000<60){
document.write( f/1000+"秒前")
}else if(f/1000/60<60){
document.write(f/1000/60+"分前")
}else if(f/1000/60/60<60){
document.write(f/1000/60/60+"小时前")
}else if(f/1000/60/60/24){
document.write(f/1000/60/60/24+'天数')
}
}
l()
</script>